package com.cms.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.cms.service.AdminService;

@Controller
@RequestMapping("/admin")
public class AdminAction {
		
	@Resource
	private AdminService adminService;
	
	@RequestMapping("/addadmin")
	public void addUser(){
		
	}
	
	@RequestMapping("/adminCount")
	public void adminCount(){
		
		int adminCount = adminService.adminCount();
		System.out.println(adminCount);
	}
	
	@RequestMapping(value="test",consumes="application/json",produces="application/json")
	public void test(){
		
	}
	
}
